package com.cyt.work.divideclass.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import com.cyt.work.divideclass.model.po.DivideclassStudent;
import com.cyt.work.divideclass.model.vo.DivideclassStudentVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 智能分班学生表,分班时导入的学生信息-智能分班学生Service层接口类
 *
 * @author caideyong
 * @date 2019-12-20 14:24:31
 */
public interface DivideclassStudentService extends BaseService<DivideclassStudent> {

    /**
     * 查询对象集合
     *
     * @param divideclassStudentVo 对象
     * @return List 对象集合
     * @author caideyong
     * @date 2019-12-20 14:24:31
     */
    List<DivideclassStudent> listExample(DivideclassStudentVo divideclassStudentVo);

    /**
     * 分页查询
     *
     * @param divideclassStudentVo 接受参数对象
     * @param pageNum              分页数
     * @param pageSize             每页显示条数
     * @return ReturnResult
     * @author caideyong
     * @date 2019-12-20 14:24:31
     */
    ReturnResult page(DivideclassStudentVo divideclassStudentVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param divideclassStudentVo 参数接受对象
     * @param sysUser              当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-12-20 14:24:31
     */
    ReturnResult addOrUpdate(DivideclassStudentVo divideclassStudentVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param divideclassStudentVo 参数接受对象
     * @param sysUser              当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-12-20 14:24:31
     */
    ReturnResult remove(DivideclassStudentVo divideclassStudentVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param divideclassStudentVo 参数接受对象
     * @param sysUser              当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-12-20 14:24:31
     */
    ReturnResult delete(DivideclassStudentVo divideclassStudentVo, SysUser sysUser);

    /**
     * 导入学生信息
     *
     * @return ReturnResult
     * @author caideyong
     * @date 2019/12/27
     */
    ReturnResult importData(HttpServletRequest request, MultipartFile file, String catalog, String update, String applyId, SysUser sysUser, String divideId);

    /**
     * 批量保存
     * @author caideyong
     * @date 2019/12/27
     */
    void insertList(List<DivideclassStudent> divideclassStudentList);

    void export(HttpServletResponse response, DivideclassStudentVo divideclassStudentVo);
}